import apiUrl from './base'
import axios from '@/libs/axios'

const bi = {
  //获取作业风险
  getZyfxData(data) {
  	return axios.post(`${apiUrl.risk}v1/RiskStatistics/board/statistics`, data)
  },
  //获取风险预测
  getFxycData(data) {
  	return axios.post(`${apiUrl.risk}v1/RiskStatistics/board/forecastStatistics`, data)
  },
  //获取风险销号
  getFxxhData(id) {
  	return axios.get(`${apiUrl.risk}v1/destroyStatistics/bi?orgId=${id}`,'')
  },
  //获取动态管控
  getDtgkData(data) {
	  return axios.post(`${apiUrl.risk}v1/BiDynamicControlReport/controlReportStatistics`, data)
  },
  //切换动态管控
  changeDtgkData(data) {
  	  return axios.post(`${apiUrl.risk}v1/BiDynamicControlReport/controlReportChangeStatistics`, data)
  },
   //动态管控详情公司级
  getDtgkDetailData(data) {
  	  return axios.post(`${apiUrl.risk}v1/BiDynamicControlReport/controlReportOrgDetailStatistics`, data)
  },
  //动态管控详情项目级
  getDtgkEjDetailData(data) {
  	  return axios.post(`${apiUrl.risk}v1/BiDynamicControlReport/controlReportProDetailStatistics`, data)
  },

}
export default bi
